package com.sunwayworld.basemodule.rm.train.examtmpl.resource;

import java.util.List;

import com.sunwayworld.basemodule.rm.train.examtmpl.bean.LimsCoreExamTmplBean;
import com.sunwayworld.basemodule.rm.train.support.constant.LimsTrainPathConstant;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.sunwayworld.framework.restful.data.RestJsonWrapperBean;
import com.sunwayworld.framework.restful.data.RestValidationResultBean;
import com.sunwayworld.framework.support.activatable.resource.GenericActivatableCloudResource;
import com.sunwayworld.framework.support.base.resource.GenericCloudResource;
import com.sunwayworld.framework.support.choosable.resource.GenericChoosableCloudResource;

@RequestMapping(LimsTrainPathConstant.CORE_EXAM_TMPL_PATH)
public interface LimsCoreExamTmplResource extends GenericCloudResource<LimsCoreExamTmplBean, Long>,
                                              GenericChoosableCloudResource<LimsCoreExamTmplBean, Long>,
                                              GenericActivatableCloudResource<LimsCoreExamTmplBean, Long> {
    
    @RequestMapping(value = "/action/clone", method = RequestMethod.PUT)
    List<Long> clone(RestJsonWrapperBean wrapper);
    
    @RequestMapping(value = "/action/delete-validate", method = RequestMethod.POST)
    RestValidationResultBean deleteValidate(RestJsonWrapperBean wrapper);
}